package com.freeland.client2009.dao.ibatis.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.freeland.client2009.dao.ibatis.ActionInfoDAO;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("actionInfoDao")
public class ActionInfoDAOImpl extends SqlMapClientDaoSupport  implements ActionInfoDAO {

	@Resource(name="sqlMapClient")
	public void setSqlMapClientFactory(SqlMapClient sqlMapClient)
	{
		this.setSqlMapClient(sqlMapClient);
	}
	
	@SuppressWarnings("unchecked")
	public int callHandlerProcedure(Map parameterMap) {
		getSqlMapClientTemplate().queryForObject("call_PRO_UPDATE_AREAOPERATEINFO", parameterMap);
		return (Integer)parameterMap.get("nret");
	}

}
